<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="css/info-mgt.css" />
<link rel="stylesheet" href="css/WdatePicker.css" />
	<link rel="stylesheet" type="text/css" href="css/jquery.dialog.css" />
	<link rel="stylesheet" href="css/index.css" />
	<!-- Bootstrap -->
<%--	<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">--%>
<title>毕业生简历管理系统</title>
<style type="text/css">
	a:link {
 	font-size: 12px;
 	color: #000000;
	text-decoration: none;
	}
	a:visited {
	font-size: 12px;
	color: #000000;
 	text-decoration: none;
	}
	a:hover {
 	font-size: 12px;
 	color: #999999;
		text-decoration: underline;
	}
	a svg:hover{
		transform: scale(1.2);
	}
	h1{
		font-family: 华文行楷;
	}
</style>
</head>

<body>
<div id="container">
<div id="hd">
	<div class="hd-wrap ue-clear">
		<div class="top-light"></div>
		<h1>毕业生简历管理系统</h1>
		<div class="login-info ue-clear">
			<div class="welcome ue-clear"><span>欢迎您,</span><a href="candidateRecommend?c_id=${candidate.c_id}" class="user-name">${candidate.name}</a></div>
		</div>
		<div class="toolbar ue-clear">
			<a href="candidateExit" class="quit-btn exit"></a>
		</div>
	</div>
</div>
<div id="bd">
	<div class="wrap ue-clear">
		<div class="sidebar">
			<!-- 目录部分 -->
			<h2 class="sidebar-header"><p>功能导航</p></h2>
			<ul class="nav">
				<li class="recommend"><div class="nav-header" onclick="candidateSkip1()"><a class="ue-clear"><span>内容推荐</span></a></div></li>
				<li class="person"><div class="nav-header" onclick="candidateSkip2()"><a class="ue-clear"><span>个人简历管理</span></a></div></li>
				<li class="search"><div class="nav-header" onclick="candidateSkip3()"><a class="ue-clear"><span>职位搜索</span></a></div></li>
				<li class="inform"><div class="nav-header" onclick="candidateSkip6()"><a class="ue-clear"><span>我的消息</span></a></div></li>
				<li class="emailSending"><div class="nav-header" onclick="candidateSkip7()"><a class="ue-clear"><span>邮件发送</span></a></div></li>
			</ul>
		</div>
		<!-- 显示部分 -->
		<div class="content">
<%--			<iframe id="iframe" width="100%" height="100%" frameborder="0"></iframe>--%>
		<div class="title"><h2>职位搜索</h2></div>
		<div class="query">
			<form method="post" action="findPositionsByParams?c_id=${candidate.c_id}">
				<div class="query-conditions ue-clear">
					<div class="conditions name ue-clear">
						<label>地区：</label>
						<input style="width:195px;height:25px;border:1px solid #C5D6E0" name="address" type="text" value="">
					</div>
					<div class="conditions name ue-clear">
						<label>岗位类别：</label>
						<select name="pos_name" style="width:200px;height:28px;border:1px solid #C5D6E0">
							<option value="">不限</option>
							<option>软件工程师</option>
							<option>会计</option>
							<option>文员</option>
							<option>客户经理</option>
							<option>网站策划</option>
							<option>平面设计师</option>
						</select>
					</div>
					<div class="conditions operate-time ue-clear">
						<label>薪资范围：</label>
						<div class="select-wrap">
							<select name="salary" style="width:200px;height:28px;border:1px solid #C5D6E0">
								<option value="">不限</option>
								<option >3000-4000</option>
								<option >4001-5000</option>
								<option >5001-6000</option>
								<option >6001-7000</option>
								<option >7001-8000</option>
							</select>
						</div>
					</div>
				</div>
				<div class="query-btn ue-clear">
					<input style="background-color:#8eb2d2;color:white;border-radius:10px" type="submit" value="查询"/>
					<input style="background-color:#EFF6FA;color:black;border-radius:10px" type="reset" value="清空"/>
				</div>
			</form>
		</div>
		<div class="table-box">
			<table>
				<thead>
				<tr>
					<th class="num">序号</th>
					<th class="num">公司名称</th>
					<th class="num">岗位</th>
					<th class="num">要求</th>
					<th class="num">地区</th>
					<th class="num">月薪</th>
					<th class="num">发布时间</th>
					<th class="num">查看</th>
					<th class="num">投递</th>
				</tr>
				</thead>
				<tbody>
				<c:forEach items="${positions}" var ="position"  begin="0" varStatus="status">
					<tr>
						<td class="num">${status.count }</td>
						<td class="num"><a style="color: blue" href="employerInfo?e_id=${position.e_id }" title="详细信息">${position.e_name }</a></td>
						<td class="num">${position.pos_name}</td>
						<td class="num">${position.job_requir}</td>
						<td class="num">${position.address}</td>
						<td class="num">${position.salary}</td>
						<td class="num">${position.release_time}</td>
						<td class="num">
							<a class="num" href="positionInfo?p_id=${position.p_id}">
								<svg t="1648472204377" class="icon" viewBox="0 0 1304 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="22759" width="35" height="35"><path d="M1078.06466969 815.07975268H758.54757525l-76.52300154 98.00314207c-18.79512286 22.82264978-52.35784332 28.19268512-75.1804931 9.39756142-4.02752609-2.68501767-6.71254376-5.37003534-9.39756142-9.39756142L520.92351765 815.07975268H218.85903765c-59.07038708 0-107.40070432-48.33031723-107.40070432-107.40070431V197.52570432c0-59.07038708 48.33031723-107.40070432 107.40070432-107.40070432h859.20563205c59.07038708 0 107.40070432 48.33031723 107.40070431 107.40070432v510.15334405c0 59.07038708-48.33031723 107.40070432-107.40070431 107.40070431z" fill="#2F77F1" p-id="22760"></path><path d="M406.81026958 385.47693625c37.59024655 0 67.12544009 29.53519354 67.1254401 67.1254401s-29.53519354 67.12544009-67.1254401 67.12544009-67.12544009-29.53519354-67.1254401-67.12544009 29.53519354-67.12544009 67.1254401-67.1254401z m241.6515845 0c37.59024655 0 67.12544009 29.53519354 67.12543928 67.1254401s-29.53519354 67.12544009-67.12543928 67.12544009-67.12544009-29.53519354-67.12544009-67.12544009 29.53519354-67.12544009 67.12544009-67.1254401z m241.65158368 0c37.59024655 0 67.12544009 29.53519354 67.1254401 67.1254401s-29.53519354 67.12544009-67.1254401 67.12544009-67.12544009-29.53519354-67.1254401-67.12544009 29.53519354-67.12544009 67.1254401-67.1254401z" fill="#AFFCFE" p-id="22761"></path></svg>
							</a>
						</td>
						<td class="num">
							<c:choose>
								<c:when test="${empty eIsEmployee.get(position.e_id)}">
									<a class="num" style="color:red;width: 35px;height: 35px;" href="searchApply?c_id=${candidate.c_id}&&e_id=${position.e_id }" title="投递简历">
										<svg t="1648472999558" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="24972" width="35" height="35"><path d="M633.648 200.72c-15.388-3.468-30.666 6.187-34.136 21.569L539.74 487.246c-0.465 2.062-0.7 4.17-0.7 6.283 0 20.503-16.68 37.184-37.183 37.184-2.431 0-4.852 0.311-7.205 0.924l-269.657 70.32c-15.258 3.979-24.403 19.574-20.423 34.833 3.349 12.843 14.927 21.354 27.609 21.354 2.385 0 4.809-0.301 7.225-0.931l266.431-69.478c49.006-2.045 88.467-41.674 90.246-90.749l59.135-262.131c3.469-15.382-6.188-30.665-21.57-34.135z" fill="#E75934" p-id="24973"></path><path d="M923.999 335.955L695.191 107.147C667.658 79.614 631.05 64.45 592.112 64.45s-75.546 15.164-103.078 42.697L108.263 487.918c-27.533 27.533-42.697 64.14-42.697 103.079 0 38.939 15.164 75.546 42.697 103.079l167.169 167.169H149.216c-15.769 0-28.552 12.783-28.552 28.552s12.783 28.552 28.552 28.552h735.226c15.769 0 28.552-12.783 28.552-28.552s-12.783-28.552-28.552-28.552H604.867L924 542.112c56.836-56.838 56.836-149.32-0.001-206.157zM883.62 501.732L524.108 861.244h-167.92L148.642 653.695c-16.748-16.747-25.971-39.014-25.971-62.698 0-23.685 9.223-45.952 25.971-62.7l380.771-380.771c16.747-16.748 39.014-25.971 62.699-25.971s45.952 9.223 62.7 25.971L883.62 376.334c34.572 34.573 34.572 90.826 0 125.398z" fill="#E75934" p-id="24974"></path></svg>
									</a>
								</c:when>
								<c:otherwise>
									<label class="num" title="已投递">
										<svg t="1648474271212" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="34385" width="35" height="35"><path d="M512.1 119.6c216.4 0 392.5 176.1 392.5 392.5S728.5 904.7 512.1 904.7 119.6 728.6 119.6 512.1s176.1-392.5 392.5-392.5m0-54.9C265 64.7 64.7 265 64.7 512.1S265 959.6 512.1 959.6c247.1 0 447.4-200.3 447.4-447.4S759.2 64.7 512.1 64.7z" fill="#0C90F8" p-id="34386"></path><path d="M469.1 667.6c-7.1 0-14.2-2.7-19.5-8.2L274.8 482.1c-10.6-10.8-10.5-28.2 0.3-38.8 10.8-10.6 28.2-10.5 38.8 0.3l174.7 177.3c10.6 10.8 10.5 28.2-0.3 38.8-5.3 5.3-12.3 7.9-19.2 7.9z" fill="#4C4F54" p-id="34387"></path><path d="M469.1 667.6c-7.1 0-14.2-2.7-19.6-8.2-10.6-10.8-10.5-28.2 0.3-38.8l260.8-256.1c10.8-10.6 28.2-10.5 38.8 0.3 10.6 10.8 10.5 28.2-0.3 38.8L488.3 659.8c-5.4 5.2-12.3 7.8-19.2 7.8z" fill="#4C4F54" p-id="34388"></path></svg>
									</label>
								</c:otherwise>
							</c:choose>
						</td>
					</tr>
				</c:forEach>
				</tbody>
			</table>
		</div>
	<div class="pagination ue-clear">
		<%--	分页--%>
<%--		<nav aria-label="Page navigation">--%>
			<ul class="pagination">
				<%--				前一页--%>
				<c:choose>
					<c:when test="${pageInfo.isFirstPage}">
						<li>
							<a href="javascript:void(0)" aria-label="Previous">
								<span aria-hidden="true"><<</span>
							</a>
						</li>
					</c:when>
					<c:otherwise>
						<li>
							<a href="/findAllPositions?c_id=${candidate.c_id}&&pageNum=${pageInfo.prePage}" aria-label="Previous">
								<span aria-hidden="true"><<</span>
							</a>
						</li>
					</c:otherwise>
				</c:choose>
				<%--			中间具体页数--%>
					<c:forEach items="${pageInfo.navigatepageNums}" var="pi">
					<li><a href="findAllPositions?c_id=${candidate.c_id}&&pageNum=${pi}">${pi}</a></li>
					</c:forEach>

				<%--			后一页--%>

					<c:choose>
						<c:when test="${pageInfo.isLastPage}">
							<li>
								<a href="javascript:void(0)" aria-label="Next">
									<span aria-hidden="true">>></span>
								</a>
							</li>
						</c:when>
						<c:otherwise>
							<li>
								<a href="findAllPositions?c_id=${candidate.c_id}&&pageNum=${pageInfo.nextPage}" aria-label="Next">
									<span aria-hidden="true">>></span>
								</a>
							</li>
						</c:otherwise>
					</c:choose>
			</ul>
<%--		</nav>--%>
	</div>
	</div>
   </div>
	</div>
</div>
</div>
</body>
<%--<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->--%>
<%--<script src="https://fastly.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script>--%>
<%--<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->--%>
<%--<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>--%>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/WdatePicker.js"></script>
<script type="text/javascript" src="js/core.js"></script>
<script type="text/javascript" src="js/jquery.dialog.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script>
function candidateSkip1(){ const c_id="${candidate.c_id}"; location.href="candidateRecommend?c_id="+c_id}
function candidateSkip2(){ const c_id="${candidate.c_id}"; location.href="updateCandidate?c_id="+c_id}
function candidateSkip3(){ const c_id="${candidate.c_id}"; location.href="findAllPositions?c_id="+c_id}
function candidateSkip6(){ const c_id="${candidate.c_id}"; location.href="candidateNotice?c_id="+c_id}
function candidateSkip7(){ location.href="canSendEmail"}

    const  msg="${message}";
	if(msg){
		alert(msg);
	}
</script>
</html>
